package com.gec.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.model.system.ITripHotel;
import com.gec.model.system.ITripHotelOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gec.model.system.ITripItinerary;
import com.gec.model.vo.ITripHotelOrderVo;
import com.gec.model.vo.ITripItineraryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author dafei
 * @since 2024-01-25
 */
public interface ITripHotelOrderMapper extends BaseMapper<ITripHotelOrder> {

    IPage<ITripHotelOrder> selectPage(IPage<ITripHotelOrder> page1,
                                            @Param("vo") ITripHotelOrderVo iTripHotelOrderVo,
                                            @Param("ew") LambdaQueryWrapper lambdaQueryWrapper
    );

    List<ITripHotelOrder> getAllByUserId(@Param("userId") Long userId);
}
